package online.heycm.platform.uid;

import com.baidu.fsg.uid.UidGenerator;

/**
 * @author heycm
 * @since 2023/11/26 18:00
 */
public class UidServiceImpl implements UidService {

    private final UidGenerator uidGenerator;

    public UidServiceImpl(UidGenerator uidGenerator) {this.uidGenerator = uidGenerator;}

    @Override
    public long nextId() {
        return uidGenerator.getUID();
    }
}
